const express = require('express');
const router = express.Router()
const profilesCtrl = require('../controller/profiles')

// 获取指定用户资料
router.get('/:username', profilesCtrl.getUserProfile)
// 关注用户
router.post('/:username/follow', profilesCtrl.toFollow)
// 取消关注
router.delete('/:username/follow', profilesCtrl.cancelFollow)

module.exports = router